package com.passion.exception;

import com.passion.enums.ExceptionCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program offline-e-commerce-data-warehouse
 * @Description
 * @Author limeihua
 * @Date 2024/09/29 20:18
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskTypeDataException extends RuntimeException {
    private Integer code;
    private String exceptionMessage;
    public TaskTypeDataException(ExceptionCode resultCodeEnum){
        this.code = resultCodeEnum.getCode();
        this.exceptionMessage = resultCodeEnum.getMessage();
    }
}
